package com.mysiteforme.bean;

import com.baomidou.mybatisplus.plugins.Page;

import java.io.Serializable;

public final class ResponseBean implements Serializable {
    /**
     * @description 响应码
     */
    private int code;

    /**
     * @description 响应消息
     */
    private String msg;

    /**
     * @description 分页对象 （如果用不到，这个可以不写）
     */
    private Page page;

    /**
     * @description 数据
     */
    private Object data;

    public final int getCode() {
        return this.code;
    }

    public final void setCode(int code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public final Page getPage() {
        return this.page;
    }

    public final void setPage( Page page) {
        this.page = page;
    }

    public final Object getData() {
        return this.data;
    }

    public final void setData(Object data) {
        this.data = data;
    }

    public ResponseBean(int code, String msg,Object data) {
        super();
        this.code = code;
        this.msg = msg;
        this.page = page;
        this.data = data;
    }


    public ResponseBean(int code, String msg, Page page, Object data) {
        super();
        this.code = code;
        this.msg = msg;
        this.page = page;
        this.data = data;
    }

}